from mnemoply._renewed_lib.crud import CRUDController, TableCol
from mnemoply._renewed_model.field import Price as model_Price


class PriceController(CRUDController):
    mysql_view_name = "prod_v2.price_lookup"
    model_object = model_Price
    lookup_columns = [
    TableCol(name = 'price_for_id', caption= _("Price For")),
    TableCol(name = 'amount', caption = _("Amount")),
    TableCol(name = 'prepayment',caption =_("Prepayment")),
    TableCol(name = 'typical_lessons',caption =_("Typical lessons")),
 #   TableCol(name = 'comment',caption=_("Comment")),
    ]
    add_fields = edit_fields = view_fields =[
    'price_forID',
    'amount',
    'prepayment',
    'typicalLessons',
    'comment',
    ]
    
exposed = PriceController()